﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="/HR_SYSTEM/Styles/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/HR_SYSTEM/Styles/admin-all.css" />
    <script type="text/javascript" src="/HR_SYSTEM/Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="/HR_SYSTEM/Scripts/jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/HR_SYSTEM/Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />
    <script type="text/javascript" src="/HR_SYSTEM/Scripts/tip.js"></script>
    <script type="text/javascript">
    	function update(){
    		document.forms["form_add"].submit();
    	}
    </script>
</head>
<body>
    <div></div>
    <div class="alert alert-info">当前位置<b class="tip"></b>管理界面<b class="tip"></b>修改员工角色</div>
     <form action="<c:url value='/RoleServlet'/>" name="form_add" method="post">
     <input type="hidden" name="method" value="updateRoleUser"/>
     <table class="table table-striped table-bordered table-condensed">
        <tr>
            <td>员工姓名:</td>
            <td>
				${user_find.username}
				<input type="hidden" name="user_id" value="${user_find.user_id}"/>
			</td>
 		</tr>
        <tr>
            <td>员工角色:</td>
            <td>
            	<select name="role_id">
            		<c:forEach items="${roles}" var="role">
            			<option value="${role.role_ID}" <c:if test="${role.role_ID eq role_find.role_ID}">selected="selected"</c:if>>${role.role_Name}</option>
            		</c:forEach>
            	</select>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input class="btn btn-inverse" id="button" type="button" onClick="update()" value="修改员工角色信息" />&nbsp;
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
